package com.tyqx.hashchaindao.mapper;



import com.tyqx.hashchainbean.module.SysRolePermission;
import com.tyqx.hashchainbean.vo.PerOrResourceParamVO;
import com.tyqx.hashchainbean.vo.PerOrResourceVO;
import com.tyqx.hashchainbean.vo.SysRolePermissionVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysRolePermissionMapper {

	public SysRolePermission getById(@Param(value = "rpId") Long rpId)throws Exception;

	public List<PerOrResourceParamVO>	getListByMap(Map<String, Object> param)throws Exception;

	public Integer getCountByMap(Map<String, Object> param)throws Exception;

	public Integer save(List<PerOrResourceVO> perOrResourceVOS)throws Exception;

	public Integer modify(SysRolePermission sysRolePermission)throws Exception;

	public Integer removeById(@Param(value = "rpId") Long rpId)throws Exception;

	public Integer removeByrpRoleId(@Param("rpRoleId") Long rpRoleId)throws Exception;

	public List<SysRolePermissionVO>	getListByMaps(Map<String, Object> param)throws Exception;

	public Integer removeByRoleAndPerId(@Param("roleId") Long roleId, @Param("perId") Long perId);

}
